package lx10_组播;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;

public class Send_group {
    public static void main(String[] args) throws IOException {
        MulticastSocket ms = new MulticastSocket();

        String s = "我是0doO,请看我o721,orz!";
        DatagramPacket dp = new DatagramPacket(s.getBytes(),s.getBytes().length, InetAddress.getByName("224.0.0.1"),8090);
        ms.send(dp);
        ms.close();
    }
}
